# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit qmake-utils git-r3
DESCRIPTION="Library and tools for creating QtWidget UIs using QML"
HOMEPAGE="https://github.com/KDAB/DeclarativeWidgets"
#SRC_URI="https://gitlab.com/accounts-sso/libaccounts-qt/repository/VERSION_1.15/archive.tar.gz -> ${P}.tar.gz"
EGIT_REPO_URI="https://github.com/KDAB/DeclarativeWidgets.git"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64"
IUSE=""

# dbus problems
#RESTRICT="test"

RDEPEND="
        dev-qt/qtcore:5
        dev-qt/qtdeclarative:5
"
DEPEND="${RDEPEND}"

src_configure() {
        eqmake5 -r ${S}/declarativewidgets.pro
}

src_install(){
 emake DESTDIR="${D}" INSTALL_ROOT="${D}" INSTALL_PATH="${D}" install

}
